{php $daohangs = require WRITEPATH."config/category.php";}
{if $daohangs['daohang']['kaiguan'] == 0}
<!--左边圈子-->
<div class="d-kuan-240-bianhua d-piaofu">
	<div class="d-kuan d-beijing-baise d-xiala-kuang"  id="b2">
		<div class="d-zuoyou-10 d-kuan d-quxian-0">
			{if $daohangs['daohang']['zuobian'] == 1}
				<a href="{CLIENT_URL}"class="">
					<div style="height: 15px;"></div>
					<div class="{if $indexc} d-beijing-hei-f8 {else}d-jingguo-huise{/if} d-kuan d-buhuanhang  d-yuanjiao-10 d-neikuang-10">
						<div class="d-kuan-40">
							<img class="d-yuanjiao-20" src="{HOME_THEME_PATH}quan/img/shouye5.png" height="25px" width="25"/>
						</div>
						<div class="d-zuo-10 d-wenzi-16 d-shang-2 d-chaochu-biaoti-200">
							<div class="d-jiacu d-yincang-biaoti-bianhua ">
								首页
							</div>
							
						</div>
					</div>
					<div class="d-clear"></div>
				</a>
				{module module=daohang order=inputtime_asc fstatus=1 catid=1 page=1 pagesize=7 return=t}
					<a {if $t.tzwz} href="{$t.tzwz}" {else} href="{dr_url($t.zmmc.'/home/index')}"{/if} {if $t.tiaozhuan == 1} target="_blank" {/if} class="">
						
						<div class="{if $_GET['s'] == $t.zmmc } d-beijing-hei-f8 {else}d-jingguo-huise{/if} d-kuan d-buhuanhang  d-yuanjiao-10 d-neikuang-10">
							<div class="d-kuan-40">
								<img class="d-yuanjiao-20" src="{dr_thumb($t.thumb)}" height="25px" width="25"/>
							</div>
							<div class="d-zuo-10 d-wenzi-16 d-shang-2 d-chaochu-biaoti-200">
								<div class="d-jiacu d-yincang-biaoti-bianhua ">
									{$t.title}
								</div>
								
							</div>
						</div>
						<div class="d-clear"></div>
					</a>
				{/module}
			{/if}
			
			
			{if dr_is_app('wenda')}
			<div class="d-hanggao-30"></div>
			<a href="/index.php?s=wenda" class="">
				<div style="height: 15px;"></div>
				<div class="{if $_GET['s'] == 'wenda' }d-beijing-hei-f8 {else}d-jingguo-huise{/if} d-kuan d-buhuanhang  d-yuanjiao-10 d-neikuang-10">
					<div class="d-kuan-40">
						<img class="d-yuanjiao-20" src="{HOME_THEME_PATH}wenda/images/wendalogo.png" height="40px"/>
					</div>
					<div class="d-zuo-10 d-wenzi-12 d-shang-2 d-chaochu-biaoti-200">
						<div class="d-jiacu d-yincang-biaoti-bianhua ">
							
							问答
						</div>
						<div class=" d-zitiyanse-hui-96 d-buhuanhang">
							<span class="">
								帖子
								{count action=table table=1_wenda cid=$t.id return=tiezi}
								{$tiezi_count}
							</span>
							<span class="d-zuo-20 " >
								<div {if $member} id="module_joins_zuobian_1" {/if}>
								用户: {count action=table table=1_wenda_joins return=joins}
										    {$joins_count}
								</div>
							</span>
						</div>
					</div>
				</div>
				<div class="d-clear"></div>
			</a>
			{/if}
			{category module=quan show=1 pid=0}
			{if $t.show == 1}
				<!--div class=" d-yuanjiao-20 d-kuan d-wenzi-12 d-zuo-10">
					<div class="d-hanggao-30 d-jiacu">{$t.name}</div>
				</div-->
				
					{if $t.child}
					  {category module=quan pid=$t.id show=1 return=t2}
					  {if $t2.show == 1}
						  <div class=" d-yuanjiao-20 d-kuan d-wenzi-12 d-zitiyanse-hui d-zuo-10">
								<div class="d-hanggao-30">{$t2.name}</div>
							</div>
							{module module=quan zt=1 ziquan=0 zuo=1 daquan=1 fstatus=1 order=displayorder_asc catid=$t2.id return=quan}
							
								<a href="{$quan.url}" class="">
									<div class="{if $quan.id == $index['id'] }d-beijing-hei-f8 {else}d-jingguo-huise{/if} d-kuan d-buhuanhang  d-yuanjiao-10 d-neikuang-10">
										<div class="d-kuan-40">
											<img class="d-yuanjiao-20" src="{dr_thumb($quan.thumb)}" height="40px" width="40"/>
										</div>
										<div class="d-zuo-10 d-wenzi-12 d-shang-2 d-chaochu-biaoti-200">
											<div class="d-jiacu d-yincang-biaoti-bianhua ">
												{if $quan.price >0}
													<span>
														<img class="" src="{HOME_THEME_PATH}web/img/jinbi.svg" height="15px" width="15"/>
													</span>
												{/if}
												{dr_strcut($quan.title, 18)}
											</div>
											<div class=" d-zitiyanse-hui-96">
												<span class="">
													帖子
													{count action=table table=1_quan_form_son cid=$quan.id return=tiezi}
													{$tiezi_count}
												</span>
												<span class="d-zuo-20">
													用户: {$quan.joins}
												</span>
											</div>
										</div>
									</div>
									<div class="d-clear"></div>
								</a>
								
							{/module}
							{/if}
						{/category}
					{/if}
				{/if}
			{/category}
		</div>
		<div class="d-clear"></div>
		<div class="d-kuan" style="height:200px"></div>
	</div>
	
</div>
<script type="text/javascript">
	var contentsHeight = document.body.clientHeight;
	var h = contentsHeight;
	document.getElementById("b2").style.height = h + 'px';
</script>
{/if}
<style>
	*, :after, :before {
	    -webkit-box-sizing: border-box;
	    -moz-box-sizing: border-box;
	    box-sizing: border-box;
		scrollbar-color: #62464600 #b3353500;
	}
</style>